package com.xueyi.aixihu.entity.po;

import com.xueyi.aixihu.entity.vo.FinanceReportBase;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class AxhFinanceReportCommunity extends FinanceReportBase {
    private Integer id;

    private Integer pid;

    @NotNull(message = "列的类型不能为空")
    private Integer lineType;

    @NotBlank(message = "资产名称不能为空")
    private String lineName;

    private BigDecimal headMoney;

    private BigDecimal endMoney;

    private Integer isValid;

    private Date createTime;

    private Date lastUpdateTime;

    @NotNull(message = "报表id不能为空")
    private Integer financeId;

    private String accessory;

    public AxhFinanceReportCommunity(Integer id, Integer pid, Integer lineType, String lineName, BigDecimal headMoney, BigDecimal endMoney, Integer isValid, Date createTime, Date lastUpdateTime, Integer financeId,
                                     String accessory) {
        this.id = id;
        this.pid = pid;
        this.lineType = lineType;
        this.lineName = lineName;
        this.headMoney = headMoney;
        this.endMoney = endMoney;
        this.isValid = isValid;
        this.createTime = createTime;
        this.lastUpdateTime = lastUpdateTime;
        this.financeId = financeId;
        this.accessory = accessory;
    }

    public AxhFinanceReportCommunity(Integer id, Integer pid, Integer lineType, String lineName, BigDecimal headMoney, BigDecimal endMoney, Integer isValid, Date createTime, Date lastUpdateTime, Integer financeId) {
        this.id = id;
        this.pid = pid;
        this.lineType = lineType;
        this.lineName = lineName;
        this.headMoney = headMoney;
        this.endMoney = endMoney;
        this.isValid = isValid;
        this.createTime = createTime;
        this.lastUpdateTime = lastUpdateTime;
        this.financeId = financeId;
    }

    public AxhFinanceReportCommunity() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getLineType() {
        return lineType;
    }

    public void setLineType(Integer lineType) {
        this.lineType = lineType;
    }

    public String getLineName() {
        return lineName;
    }

    public void setLineName(String lineName) {
        this.lineName = lineName;
    }

    public BigDecimal getHeadMoney() {
        return headMoney;
    }

    public void setHeadMoney(BigDecimal headMoney) {
        this.headMoney = headMoney;
    }

    public BigDecimal getEndMoney() {
        return endMoney;
    }

    public void setEndMoney(BigDecimal endMoney) {
        this.endMoney = endMoney;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Integer getFinanceId() {
        return financeId;
    }

    public void setFinanceId(Integer financeId) {
        this.financeId = financeId;
    }
}